#include <iostream>
using namespace std;

int main()
{
	int m, t, s, n;
	cin >> m >> t >> s;
	if(t == 0)
		n = 0;
	else 
	
		n = (s % t != 0 ? (m - 1 - s / t < 0 ? 0 : m - 1 - s / t )  : (m - s / t < 0 ? 0 : m - s / t ));
	cout << n << endl;
	
	return 0;
 } 
